-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Canvas] Adds editor menu to Canvas #113194
[Canvas] Adds editor menu to Canvas #113194
Conversation
77970cb
to
cac0861
Compare
Enabling embeddables in Canvas and aligning the toolbar UX is a nice milestone. I took an initial pass to review the functionality and came away with the following notes:
All in all, great progress and nothing feels like a blocker. Being able to add all of this new non-native content would be a nice boost for Canvas users. Update |
cac0861
to
f506db1
Compare
e669879
to
ddb8632
Compare
55cd7ea
to
72592c4
Compare
ddb8632
to
b706dfd
Compare
72592c4
to
2e5bf8a
Compare
After digging into the add to/unlink from library actions on Dashboard, they only work specifically for Dashboard, and there isn't a way to reuse that code for Canvas. I'd have to create new actions in Canvas to achieve the same actions, which I think should be tackled as a follow up enhancement. I'll file an issue for it. |
b706dfd
to
2030a15
Compare
f67b41d
to
1ec23f6
Compare
1ec23f6
to
6115f78
Compare
2030a15
to
afea023
Compare
6115f78
to
27d7cdd
Compare
afea023
to
6b2bc48
Compare
88cccad
to
634eabb
Compare
634eabb
to
e38e252
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.euiIcon path { | ||
fill: $euiColorGhost; | ||
} | ||
} | ||
|
||
.canvasSolutionToolbar__editorContextMenu--light { | ||
.euiIcon path { | ||
fill: $euiColorInk; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really need these two fill
declarations here? As far as I can tell they're not making a difference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like these styles are no longer necessary to apply to get monochrome icons. Before some of the app icons would be two toned, but that seems to be fixed in EUI. I'll go ahead and remove this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
34831c5
to
6a29232
Compare
7a9e23e
to
a442afe
Compare
border-style: solid !important; | ||
border-color: $euiBorderColor !important; | ||
.euiButtonGroup__buttons { | ||
border-radius: 6px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember to use EUI variables whenever possible. This one should be something like $euiBorderRadius
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the styles to use $euiBorderRadius
.
52b545f
to
2e55da3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making those changes. LGTM.
6a29232
to
8ac6d41
Compare
Added stories Updated editor menu button label in Canvas and Dashboard Fixed label typo
3e99312
to
d6ca746
Compare
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
* [Canvas] Generic embeddable function (#104499) * Created generic embeddable function Fixed telemetry Updates expression on input change Fixed ts errors Store embeddable input to expression Added lib functions Added comments Fixed type errors Fixed ts errors Clean up Removed extraneous import Added context type to embeddable function def Fix import Update encode/decode fns Moved embeddable data url lib file Added embeddable test Updated comment * Fix reference extract/inject in embeddable fn * Simplify embeddable toExpression * Moved labsService to flyout.tsx * Added comment * [Canvas] Adds Save and Return Workflow (#111411) * [Canvas] Adds editor menu to Canvas (#113194) * Merge existing embeddable input with incoming embeddable input (#116026) * [Canvas] Extract and inject references for by-value embeddables (#115124) * Extract/inject references for by-value embeddables in embeddable function Fixed server interpreter setup Register external functions in canvas_plugin_src plugin def * Fixed ref name in embeddable.inject * Fixed ts errors * Fix missing type error Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
Related to #108439.
Related to #81812.
Blocked by #94489.Blocked by #111411.This adds an editor menu to Canvas where users can create embeddables from editors outside of Canvas.
Outstanding tasks:
Add to library
/Unlink from library
actionsChecklist
Delete any items that are not applicable to this PR.
Risk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.
When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:
For maintainers